
export default interface Task {

    /**
     * 任务名字
     */
    name: string;

    /**
     * 运行任务
     * 
     * @param done 任务完成回调
     */
    run(progress: (progress: number, total: number) => void,success: () => void, fail: (e?: any) => void): void;

}